package org.example.spring_blog.utils;

import java.text.SimpleDateFormat;
import java.util.Date;


public class DateUtils {
    public static String dateFormat(Date date) {
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm");

        return format.format(date);
    }
}
